package net.lzzy.lxq.dao;

import net.lzzy.lxq.entities.AdminUser;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface AdminUserMapper {

    @Select("select * from adminUser where userId=#{userId} and password=#{password}")
    AdminUser getAdminUser(@Param("userId") String userId, @Param("password")String password);

    @Select("select * from adminUser")
    List<AdminUser> getUsers();

}
